package com.explorex.infra.puma.gateway.netty.common.enums;

/**
 * Created by wuhaodong on 2018/5/21.
 * define code and msg for push auth
 */
public enum AuthResultEnum {
    SUCCESS("A00000", "成功"),
    FAIL("A00005", "session过期或校验失败"),
    ID_NOT_MATCH("A00006", "user_id与session不符"),
    SERVICE_ERROR("A00008", "后台内部错误"),
    CLIENT_INVALID_PARAMS("A00009","客户端参数错误"),
    FALLBACK("A00010", "Fall back"),
    LIMIT_RATE("A00011", "rate limit"),
    NOT_RETRY("A00012", "not retry");

    private String code;

    private String msg;

    AuthResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
